package edu.zju.gis.dbfg.server.service.impl;

import edu.zju.gis.dbfg.common.base.BaseServiceImpl;
import edu.zju.gis.dbfg.server.mapper.MysqlSourceMapper;
import edu.zju.gis.dbfg.server.model.MysqlSource;
import edu.zju.gis.dbfg.server.service.MysqlSourceService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MysqlSourceServiceImpl extends BaseServiceImpl<MysqlSourceMapper, MysqlSource, String> implements MysqlSourceService {
    @Override
    public List<MysqlSource> search(){
        return this.mapper.search();
    }
    @Override
    public  int insert(MysqlSource pgSource){
        return this.mapper.insert(pgSource);
    }
    @Override
    public MysqlSource searchById(String id){
        return this.mapper.searchById(id);
    }
    @Override
    public int deleteByPrimaryKey(String id){
        return this.mapper.deleteByPrimaryKey(id);
    }
}

